﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace theRift
{
    public class MenuScene : GameScene
    {
        protected MenuTextManager menu;

        public MenuTextManager Menu
        {
            get { return menu; }
        }

        public MenuScene(Game game, SpriteFont smallFont, SpriteFont bigFont)
            : base(game)
        {
            // Create menu
            string[] items = { "Play", "Options", "About", "Quit" };
            menu = new MenuTextManager(game, smallFont, bigFont);
            menu.SetMenuItems(items);
            Components.Add(menu);


            Initialize();
        }

        public override void Update(GameTime gameTime)
        {
            // Menu update needed later?

            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            // Draw menu elements here later

            base.Draw(gameTime);
        }

        public override void Show()
        {
            menu.Position = new Vector2((Game.Window.ClientBounds.Width - menu.Width) / 2, 200);
            menu.Visible = true;
            menu.Enabled = true;

            base.Show();
        }

        public override void Hide()
        {
            base.Hide();
        }
    }
}
